package net.jacqeush.mini.rpc.client.properties;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.core.Ordered;
import org.springframework.core.env.Environment;


/**
 * @author Jacquesh
 * @version 1.0
 * @date 2020/10/22 1:42
 */
@ConfigurationProperties(prefix = "mini.rpc.client")
@Data
public class RpcClientProperties implements Ordered {
        String address;
        boolean enabled;
        long timeout=3000;
        boolean async=false;
        public RpcClientProperties(Environment environment) {
        }

        @Override
        public int getOrder() {
                return 0;
        }
}

